package finalfinancialanalyst.business;

import java.io.Serializable;

public class Location implements Serializable{
    
        private static final long serialVersionUID = 1L;
 
	private String name;
	 
	private double latitude;
	 
	private double longitude;
	 
	public Location(String name, double latitude, double longitude) {
            this.name = name;
            this.latitude = latitude;
            this.longitude = longitude;
	 
	}
        
        public Location() {
            this("Not specified",0,0);
        }
	 
	public boolean setCurrent() {
		return false;
	}
	 
	public String getCoordinates() {
		return null;
                //TODO return string value of coords
	}
	 
	public void setName(String name) {
		this.name = name; 
	}
	 
	public String getName() {
		return name;
	}
	 
	public String getLatitude() {
		return Double.toString(latitude);
	}
	 
	public String getLongitude() {
		return Double.toString(longitude);  
	}
	 
	public void setPosition(Double lat, Double lon) {
            setLatitude(lat);
            setLongitude(lon);
            
	}
	 
	public void setLatitude(double lat) {
            this.latitude = lat;
	 
	}
	 
	public void setLongitude(double lon) {
            this.longitude = lon;
	 
	}
	 
	public void viewMap() {
            //TODO
	}
	 
}
 
